/* 市场报表
 */

import { getRequest, getDownload } from '@/lib/axios'

export const marketApi = {
  // 预订货订单报表
  queryBookList: (param) => {
    return getRequest('/book_order/report', param)
  },
  // 预订货订单报表导出
  exportBook: (params) => {
    return getDownload('/book_order/report-export-xlsx', params)
  },
  // 订货单明细报表
  queryReportList: (param) => {
    return getRequest('/book_order/report-info', param)
  },
  // 订货单明细报表导出
  exportReport: (params) => {
    return getDownload('/book_order/report-info-export-xlsx', params)
  },
  // 订货单履约记录
  queryFulfillmentList: (param) => {
    return getRequest('/book_order/book-order-fulfillment-record', param)
  },
  // 订货单履约记录导出
  exportFulfillment: (params) => {
    return getDownload('/book_order/book-order-fulfillment-record-xlsx', params)
  }
}
